Skip to content

Commit

Permalink
Native Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
lahodaj committed Jan 30, 2025
1 parent f5435d4 commit 0414688
Show file tree
Hide file tree
Showing 6 changed files with 261 additions and 1,020 deletions.
2 changes: 1 addition & 1 deletion make/modules/jdk.internal.le/Lib.gmk
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ include LibCommon.gmk

################################################################################

ifeq ($(call isTargetOs, linux macosx), true)
ifeq ($(call isTargetOs, linux macosx windows), true)

$(eval $(call SetupJdkLibrary, BUILD_LIBLE, \
NAME := le, \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,9 @@ public static char[] doRead(Reader reader, Writer out, boolean password, int fir
CleanableBuffer result = new CleanableBuffer();
try {
doReadImpl(reader, out, password, firstLineOffset, terminalWidthSupplier, result);
return result.data;
} catch (Throwable t) {
return Arrays.copyOf(result.data, result.length);
} finally {
result.zeroOut();
throw t;
}
}

Expand Down
Loading

0 comments on commit 0414688

Please sign in to comment.