hotspot/src/share/vm/memory/referenceProcessor.hpp
changeset 6459 3d75ed40a975
parent 5547 f4b087cbb361
child 6769 5f30b5a1ce5c
--- a/hotspot/src/share/vm/memory/referenceProcessor.hpp	Thu Sep 09 01:43:48 2010 -0700
+++ b/hotspot/src/share/vm/memory/referenceProcessor.hpp	Thu Sep 09 05:24:11 2010 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2001, 2008, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2001, 2010, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -346,7 +346,8 @@
   bool _was_discovering_refs;
  public:
   NoRefDiscovery(ReferenceProcessor* rp) : _rp(rp) {
-    if (_was_discovering_refs = _rp->discovery_enabled()) {
+    _was_discovering_refs = _rp->discovery_enabled();
+    if (_was_discovering_refs) {
       _rp->disable_discovery();
     }
   }