Mercurial > hg > truffle
comparison src/share/vm/oops/instanceMirrorKlass.hpp @ 12316:190899198332
7195622: CheckUnhandledOops has limited usefulness now
Summary: Enable CHECK_UNHANDLED_OOPS in fastdebug builds across all supported platforms.
Reviewed-by: coleenp, hseigel, dholmes, stefank, twisti, ihse, rdurbin
Contributed-by: lois.foltan@oracle.com
author | hseigel |
---|---|
date | Thu, 26 Sep 2013 10:25:02 -0400 |
parents | db9981fd3124 |
children |
comparison
equal
deleted
inserted
replaced
12315:c1fbf21c7397 | 12316:190899198332 |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 2011, 2013, 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. |
64 virtual int oop_size(oop obj) const; | 64 virtual int oop_size(oop obj) const; |
65 | 65 |
66 // Static field offset is an offset into the Heap, should be converted by | 66 // Static field offset is an offset into the Heap, should be converted by |
67 // based on UseCompressedOop for traversal | 67 // based on UseCompressedOop for traversal |
68 static HeapWord* start_of_static_fields(oop obj) { | 68 static HeapWord* start_of_static_fields(oop obj) { |
69 return (HeapWord*)((intptr_t)obj + offset_of_static_fields()); | 69 return (HeapWord*)(cast_from_oop<intptr_t>(obj) + offset_of_static_fields()); |
70 } | 70 } |
71 | 71 |
72 static void init_offset_of_static_fields() { | 72 static void init_offset_of_static_fields() { |
73 // Cache the offset of the static fields in the Class instance | 73 // Cache the offset of the static fields in the Class instance |
74 assert(_offset_of_static_fields == 0, "once"); | 74 assert(_offset_of_static_fields == 0, "once"); |