Mercurial > hg > truffle
comparison src/share/vm/utilities/array.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 | 10c9507f544a |
children | 52b4284cb496 ce8f6bb717c9 |
comparison
equal
deleted
inserted
replaced
17935:7384f6a12fc1 | 17937:78bbf4d43a14 |
---|---|
373 // Note, this offset don't have to be wordSize aligned. | 373 // Note, this offset don't have to be wordSize aligned. |
374 static int base_offset_in_bytes() { return (int) (offset_of(Array<T>, _data)); }; | 374 static int base_offset_in_bytes() { return (int) (offset_of(Array<T>, _data)); }; |
375 | 375 |
376 // FIXME: How to handle this? | 376 // FIXME: How to handle this? |
377 void print_value_on(outputStream* st) const { | 377 void print_value_on(outputStream* st) const { |
378 st->print("Array<T>(" INTPTR_FORMAT ")", this); | 378 st->print("Array<T>(" INTPTR_FORMAT ")", p2i(this)); |
379 } | 379 } |
380 | 380 |
381 #ifndef PRODUCT | 381 #ifndef PRODUCT |
382 void print(outputStream* st) { | 382 void print(outputStream* st) { |
383 for (int i = 0; i< _length; i++) { | 383 for (int i = 0; i< _length; i++) { |