equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 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. |
222 |
222 |
223 |
223 |
224 // ConstantOopReadValue |
224 // ConstantOopReadValue |
225 |
225 |
226 ConstantOopReadValue::ConstantOopReadValue(DebugInfoReadStream* stream) { |
226 ConstantOopReadValue::ConstantOopReadValue(DebugInfoReadStream* stream) { |
227 _value = Handle(stream->read_oop()); |
227 _value = Handle(Thread::current(), stream->read_oop()); |
228 assert(_value() == NULL || |
228 assert(_value() == NULL || |
229 Universe::heap()->is_in_reserved(_value()), "Should be in heap"); |
229 Universe::heap()->is_in_reserved(_value()), "Should be in heap"); |
230 } |
230 } |
231 |
231 |
232 void ConstantOopReadValue::write_on(DebugInfoWriteStream* stream) { |
232 void ConstantOopReadValue::write_on(DebugInfoWriteStream* stream) { |