comparison src/share/vm/ci/ciMethodData.cpp @ 13274:c044f8d03932

8182299: Enable disabled clang warnings, build on OSX 10 + Xcode 8 8182656: Make the required changes in GC code to build on OSX 10 + Xcode 8 8182657: Make the required changes in Runtime code to build on OSX 10 + Xcode 8 8182658: Make the required changes in Compiler code to build on OSX 10 + Xcode 8 Reviewed-by: jwilhelm, ehelin, phh Contributed-by: phh <hohensee@amazon.com>, jwilhelm <jesper.wilhelmsson@oracle.com>
author jwilhelm
date Thu, 06 Jul 2017 01:50:26 +0200
parents 83906886441f
children
comparison
equal deleted inserted replaced
25:4351af7f48c2 26:7e26e68239c5
1 /* 1 /*
2 * Copyright (c) 2001, 2014, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2001, 2017, 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.
608 608
609 // dump the MDO data as raw data 609 // dump the MDO data as raw data
610 int elements = (data_size() + extra_data_size()) / sizeof(intptr_t); 610 int elements = (data_size() + extra_data_size()) / sizeof(intptr_t);
611 out->print(" data %d", elements); 611 out->print(" data %d", elements);
612 for (int i = 0; i < elements; i++) { 612 for (int i = 0; i < elements; i++) {
613 // We could use INTPTR_FORMAT here but that's a zero justified 613 // We could use INTPTR_FORMAT here but that's zero justified
614 // which makes comparing it with the SA version of this output 614 // which makes comparing it with the SA version of this output
615 // harder. 615 // harder. data()'s element type is intptr_t.
616 #ifdef _LP64 616 out->print(" " INTPTRNZ_FORMAT, data()[i]);
617 out->print(" 0x%" FORMAT64_MODIFIER "x", data()[i]);
618 #else
619 out->print(" 0x%x", data()[i]);
620 #endif
621 } 617 }
622 618
623 // The MDO contained oop references as ciObjects, so scan for those 619 // The MDO contained oop references as ciObjects, so scan for those
624 // and emit pairs of offset and klass name so that they can be 620 // and emit pairs of offset and klass name so that they can be
625 // reconstructed at runtime. The first round counts the number of 621 // reconstructed at runtime. The first round counts the number of