equal
deleted
inserted
replaced
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 |