1.1 --- a/src/share/vm/memory/referenceProcessor.hpp Thu Sep 09 01:43:48 2010 -0700 1.2 +++ b/src/share/vm/memory/referenceProcessor.hpp Thu Sep 09 05:24:11 2010 -0700 1.3 @@ -1,5 +1,5 @@ 1.4 /* 1.5 - * Copyright (c) 2001, 2008, Oracle and/or its affiliates. All rights reserved. 1.6 + * Copyright (c) 2001, 2010, Oracle and/or its affiliates. All rights reserved. 1.7 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1.8 * 1.9 * This code is free software; you can redistribute it and/or modify it 1.10 @@ -346,7 +346,8 @@ 1.11 bool _was_discovering_refs; 1.12 public: 1.13 NoRefDiscovery(ReferenceProcessor* rp) : _rp(rp) { 1.14 - if (_was_discovering_refs = _rp->discovery_enabled()) { 1.15 + _was_discovering_refs = _rp->discovery_enabled(); 1.16 + if (_was_discovering_refs) { 1.17 _rp->disable_discovery(); 1.18 } 1.19 }