Mercurial > hg > truffle
comparison src/share/vm/gc_implementation/g1/g1OopClosures.inline.hpp @ 17937:78bbf4d43a14
8037816: Fix for 8036122 breaks build with Xcode5/clang
8043029: Change 8037816 breaks HS build with older GCC versions which don't support diagnostic pragmas
8043164: Format warning in traceStream.hpp
Summary: Backport of main fix + two corrections, enables clang compilation, turns on format attributes, corrects/mutes warnings
Reviewed-by: kvn, coleenp, iveresov, twisti
author | drchase |
---|---|
date | Thu, 22 May 2014 15:52:41 -0400 |
parents | bbfbe9b06038 |
children | 52b4284cb496 c49dcaf78a65 |
comparison
equal
deleted
inserted
replaced
17935:7384f6a12fc1 | 17937:78bbf4d43a14 |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2001, 2012, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 2001, 2014, 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. |
112 | 112 |
113 oop obj = oopDesc::load_decode_heap_oop(p); | 113 oop obj = oopDesc::load_decode_heap_oop(p); |
114 if (_cm->verbose_high()) { | 114 if (_cm->verbose_high()) { |
115 gclog_or_tty->print_cr("[%u] we're looking at location " | 115 gclog_or_tty->print_cr("[%u] we're looking at location " |
116 "*"PTR_FORMAT" = "PTR_FORMAT, | 116 "*"PTR_FORMAT" = "PTR_FORMAT, |
117 _task->worker_id(), p, (void*) obj); | 117 _task->worker_id(), p2i(p), p2i((void*) obj)); |
118 } | 118 } |
119 _task->deal_with_reference(obj); | 119 _task->deal_with_reference(obj); |
120 } | 120 } |
121 | 121 |
122 template <class T> | 122 template <class T> |