Mercurial > hg > graal-jvmci-8
comparison src/share/vm/memory/referenceProcessor.hpp @ 1789:a83b0246bb77
6934483: GCC 4.5 errors "suggest parentheses around something..." when compiling with -Werror and -Wall
Summary: These are minor changes fixing compile failure when -Wall -Werror flags are used under gcc 4.5.
Reviewed-by: twisti, kvn, rasbold
Contributed-by: Pavel Tisnovsky <ptisnovs@redhat.com>
author | twisti |
---|---|
date | Thu, 09 Sep 2010 05:24:11 -0700 |
parents | c18cbe5936b8 |
children | 0715f0cf171d |
comparison
equal
deleted
inserted
replaced
1788:33a54060190d | 1789:a83b0246bb77 |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2001, 2008, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 2001, 2010, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * | 4 * |
5 * This code is free software; you can redistribute it and/or modify it | 5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as | 6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
344 private: | 344 private: |
345 ReferenceProcessor* _rp; | 345 ReferenceProcessor* _rp; |
346 bool _was_discovering_refs; | 346 bool _was_discovering_refs; |
347 public: | 347 public: |
348 NoRefDiscovery(ReferenceProcessor* rp) : _rp(rp) { | 348 NoRefDiscovery(ReferenceProcessor* rp) : _rp(rp) { |
349 if (_was_discovering_refs = _rp->discovery_enabled()) { | 349 _was_discovering_refs = _rp->discovery_enabled(); |
350 if (_was_discovering_refs) { | |
350 _rp->disable_discovery(); | 351 _rp->disable_discovery(); |
351 } | 352 } |
352 } | 353 } |
353 | 354 |
354 ~NoRefDiscovery() { | 355 ~NoRefDiscovery() { |