Skip to content

Commit 10ced3a

Browse files
committed
Merge
2 parents 0cfa66d + d88408c commit 10ced3a

File tree

3 files changed

+12
-10
lines changed

3 files changed

+12
-10
lines changed

make/common/MakeBase.gmk

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -518,12 +518,14 @@ ifeq ($(OPENJDK_TARGET_OS),solaris)
518518
define install-file
519519
$(call MakeTargetDir)
520520
$(RM) '$(call DecodeSpace, $@)'
521-
if [ '$(call DecodeSpace, $(dir $@))' != \
521+
if [ '$(call DecodeSpace, $(dir $(call EncodeSpace, $@)))' != \
522522
'$(call DecodeSpace, $(dir $(call EncodeSpace, $<)))' ]; then \
523-
$(CP) -f -r -P '$(call DecodeSpace, $<)' '$(call DecodeSpace, $(@D))'; \
524-
if [ '$(call DecodeSpace, $(@F))' != \
523+
$(CP) -f -r -P '$(call DecodeSpace, $<)' \
524+
'$(call DecodeSpace, $(dir $(call EncodeSpace, $@)))'; \
525+
if [ '$(call DecodeSpace, $(notdir $(call EncodeSpace, $@)))' != \
525526
'$(call DecodeSpace, $(notdir $(call EncodeSpace, $(<))))' ]; then \
526-
$(MV) '$(call DecodeSpace, $(@D)/$(<F))' '$(call DecodeSpace, $@)'; \
527+
$(MV) '$(call DecodeSpace, $(dir $(call EncodeSpace, $@))/$(notdir $(call EncodeSpace, $<)))' \
528+
'$(call DecodeSpace, $@)'; \
527529
fi; \
528530
else \
529531
if [ -L '$(call DecodeSpace, $<)' ]; then \

src/java.base/share/classes/java/lang/invoke/InvokerBytecodeGenerator.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -669,6 +669,7 @@ private static MemberName lookupPregenerated(LambdaForm form, MethodType invoker
669669
case PUT_LONG: // fall-through
670670
case PUT_FLOAT: // fall-through
671671
case PUT_DOUBLE: // fall-through
672+
case DIRECT_NEW_INVOKE_SPECIAL: // fall-through
672673
case DIRECT_INVOKE_INTERFACE: // fall-through
673674
case DIRECT_INVOKE_SPECIAL: // fall-through
674675
case DIRECT_INVOKE_STATIC: // fall-through
@@ -1864,13 +1865,11 @@ private byte[] generateNamedFunctionInvokerImpl(MethodTypeForm typeForm) {
18641865
* Emit a bogus method that just loads some string constants. This is to get the constants into the constant pool
18651866
* for debugging purposes.
18661867
*/
1867-
private void bogusMethod(Object... os) {
1868+
private void bogusMethod(Object os) {
18681869
if (DUMP_CLASS_FILES) {
18691870
mv = cw.visitMethod(Opcodes.ACC_STATIC, "dummy", "()V", null, null);
1870-
for (Object o : os) {
1871-
mv.visitLdcInsn(o.toString());
1872-
mv.visitInsn(Opcodes.POP);
1873-
}
1871+
mv.visitLdcInsn(os.toString());
1872+
mv.visitInsn(Opcodes.POP);
18741873
mv.visitInsn(Opcodes.RETURN);
18751874
mv.visitMaxs(0, 0);
18761875
mv.visitEnd();

src/jdk.jlink/share/classes/jdk/tools/jlink/internal/plugins/GenerateJLIClassesPlugin.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,8 @@ private static Map<String, Set<String>> defaultDMHMethods() {
147147
"L_I", "L_L", "L_V", "LD_L", "LF_L", "LI_I", "LII_L", "LLI_L",
148148
"LL_V", "LL_L", "L3_L", "L4_L", "L5_L", "L6_L", "L7_L",
149149
"L8_L", "L9_L", "L10_L", "L10I_L", "L10II_L", "L10IIL_L",
150-
"L11_L", "L12_L", "L13_L", "L14_L", "L14I_L", "L14II_L")
150+
"L11_L", "L12_L", "L13_L", "L14_L", "L14I_L", "L14II_L"),
151+
DMH_NEW_INVOKE_SPECIAL, Set.of("L_L", "LL_L")
151152
);
152153
}
153154

0 commit comments

Comments
 (0)