Mercurial > hg > truffle
comparison src/share/vm/code/vtableStubs.hpp @ 12146:9758d9f36299
8021954: VM SIGSEGV during classloading on MacOS; hs_err_pid file produced
Summary: declare all user-defined operator new()s within Hotspot code with the empty throw() exception specification
Reviewed-by: coleenp, twisti, dholmes, hseigel, dcubed, kvn, ccheung
Contributed-by: lois.foltan@oracle.com
author | coleenp |
---|---|
date | Thu, 29 Aug 2013 18:56:29 -0400 |
parents | da91efe96a93 |
children | b2e698d2276c |
comparison
equal
deleted
inserted
replaced
12145:cef1e56a4d88 | 12146:9758d9f36299 |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 1997, 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. |
44 short _ame_offset; // Where an AbstractMethodError might occur | 44 short _ame_offset; // Where an AbstractMethodError might occur |
45 short _npe_offset; // Where a NullPointerException might occur | 45 short _npe_offset; // Where a NullPointerException might occur |
46 bool _is_vtable_stub; // True if vtable stub, false, is itable stub | 46 bool _is_vtable_stub; // True if vtable stub, false, is itable stub |
47 /* code follows here */ // The vtableStub code | 47 /* code follows here */ // The vtableStub code |
48 | 48 |
49 void* operator new(size_t size, int code_size); | 49 void* operator new(size_t size, int code_size) throw(); |
50 | 50 |
51 VtableStub(bool is_vtable_stub, int index) | 51 VtableStub(bool is_vtable_stub, int index) |
52 : _next(NULL), _is_vtable_stub(is_vtable_stub), | 52 : _next(NULL), _is_vtable_stub(is_vtable_stub), |
53 _index(index), _ame_offset(-1), _npe_offset(-1) {} | 53 _index(index), _ame_offset(-1), _npe_offset(-1) {} |
54 VtableStub* next() const { return _next; } | 54 VtableStub* next() const { return _next; } |