equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1998, 2016, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1998, 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. |
1561 return TypeFunc::make(domain,range); |
1561 return TypeFunc::make(domain,range); |
1562 } |
1562 } |
1563 |
1563 |
1564 |
1564 |
1565 JRT_ENTRY_NO_ASYNC(void, OptoRuntime::register_finalizer(oopDesc* obj, JavaThread* thread)) |
1565 JRT_ENTRY_NO_ASYNC(void, OptoRuntime::register_finalizer(oopDesc* obj, JavaThread* thread)) |
1566 assert(obj->is_oop(), "must be a valid oop"); |
1566 assert(oopDesc::is_oop(obj), "must be a valid oop"); |
1567 assert(obj->klass()->has_finalizer(), "shouldn't be here otherwise"); |
1567 assert(obj->klass()->has_finalizer(), "shouldn't be here otherwise"); |
1568 InstanceKlass::register_finalizer(instanceOop(obj), CHECK); |
1568 InstanceKlass::register_finalizer(instanceOop(obj), CHECK); |
1569 JRT_END |
1569 JRT_END |
1570 |
1570 |
1571 //----------------------------------------------------------------------------- |
1571 //----------------------------------------------------------------------------- |