src/cpu/ppc/vm/frame_ppc.cpp

changeset 9669
32bc598624bd
parent 7553
f43fad8786fc
child 9703
2fdf635bcf28
child 9858
b985cbb00e68
     1.1 --- a/src/cpu/ppc/vm/frame_ppc.cpp	Thu Nov 05 11:42:42 2015 +0100
     1.2 +++ b/src/cpu/ppc/vm/frame_ppc.cpp	Tue May 07 20:38:26 2019 +0000
     1.3 @@ -1,6 +1,6 @@
     1.4  /*
     1.5 - * Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.
     1.6 - * Copyright 2012, 2014 SAP AG. All rights reserved.
     1.7 + * Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
     1.8 + * Copyright (c) 2012, 2017 SAP AG. All rights reserved.
     1.9   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    1.10   *
    1.11   * This code is free software; you can redistribute it and/or modify it
    1.12 @@ -190,10 +190,7 @@
    1.13      switch (method->result_type()) {
    1.14        case T_OBJECT:
    1.15        case T_ARRAY: {
    1.16 -        oop* obj_p = *(oop**)lresult;
    1.17 -        oop obj = (obj_p == NULL) ? (oop)NULL : *obj_p;
    1.18 -        assert(obj == NULL || Universe::heap()->is_in(obj), "sanity check");
    1.19 -        *oop_result = obj;
    1.20 +        *oop_result = JNIHandles::resolve(*(jobject*)lresult);
    1.21          break;
    1.22        }
    1.23        // We use std/stfd to store the values.

mercurial