hotspot/src/share/vm/shark/sharkNativeWrapper.cpp
changeset 44093 e22e0d071bf9
parent 44088 fb5421685295
child 44406 a46a6c4d1dd9
equal deleted inserted replaced
44092:bc842cc2356b 44093:e22e0d071bf9
     1 /*
     1 /*
     2  * Copyright (c) 1999, 2017, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1999, 2011, 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.
       
   304     Value *unboxed_result = builder()->CreateLoad(result);
   303     Value *unboxed_result = builder()->CreateLoad(result);
   305     builder()->CreateBr(merge);
   304     builder()->CreateBr(merge);
   306 
   305 
   307     builder()->SetInsertPoint(merge);
   306     builder()->SetInsertPoint(merge);
   308     PHINode *phi = builder()->CreatePHI(SharkType::oop_type(), 0, "result");
   307     PHINode *phi = builder()->CreatePHI(SharkType::oop_type(), 0, "result");