hotspot/src/share/vm/shark/sharkNativeWrapper.cpp
changeset 44406 a46a6c4d1dd9
parent 44093 e22e0d071bf9
equal deleted inserted replaced
44405:5bc48f22b149 44406:a46a6c4d1dd9
     1 /*
     1 /*
     2  * Copyright (c) 1999, 2011, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1999, 2017, Oracle and/or its affiliates. All rights reserved.
     3  * Copyright 2009, 2010 Red Hat, Inc.
     3  * Copyright 2009, 2010 Red Hat, Inc.
     4  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     5  *
     5  *
     6  * This code is free software; you can redistribute it and/or modify it
     6  * This code is free software; you can redistribute it and/or modify it
     7  * under the terms of the GNU General Public License version 2 only, as
     7  * under the terms of the GNU General Public License version 2 only, as
   298     builder()->CreateCondBr(
   298     builder()->CreateCondBr(
   299       builder()->CreateICmpNE(result, ConstantPointerNull::get(box_type)),
   299       builder()->CreateICmpNE(result, ConstantPointerNull::get(box_type)),
   300       not_null, merge);
   300       not_null, merge);
   301 
   301 
   302     builder()->SetInsertPoint(not_null);
   302     builder()->SetInsertPoint(not_null);
       
   303 #error Needs to be updated for tagged jweak; see JNIHandles.
   303     Value *unboxed_result = builder()->CreateLoad(result);
   304     Value *unboxed_result = builder()->CreateLoad(result);
   304     builder()->CreateBr(merge);
   305     builder()->CreateBr(merge);
   305 
   306 
   306     builder()->SetInsertPoint(merge);
   307     builder()->SetInsertPoint(merge);
   307     PHINode *phi = builder()->CreatePHI(SharkType::oop_type(), 0, "result");
   308     PHINode *phi = builder()->CreatePHI(SharkType::oop_type(), 0, "result");