mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8184947: ZipCoder performance improvements
Reviewed-by: martin, redestad
This commit is contained in:
parent
1ae8f54835
commit
4f0ea9242f
9 changed files with 620 additions and 881 deletions
|
@ -2184,6 +2184,15 @@ public final class System {
|
|||
public Stream<ModuleLayer> layers(ClassLoader loader) {
|
||||
return ModuleLayer.layers(loader);
|
||||
}
|
||||
|
||||
public String newStringUTF8NoRepl(byte[] bytes, int off, int len) {
|
||||
return StringCoding.newStringUTF8NoRepl(bytes, off, len);
|
||||
}
|
||||
|
||||
public byte[] getBytesUTF8NoRepl(String s) {
|
||||
return StringCoding.getBytesUTF8NoRepl(s);
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue