mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 06:14:49 +02:00
8262913: KlassFactory::create_from_stream should never return NULL
Reviewed-by: hseigel, iklam
This commit is contained in:
parent
fab567666e
commit
4d21a455aa
9 changed files with 219 additions and 44 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1997, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -45,7 +45,9 @@ ClassFileStream::ClassFileStream(const u1* buffer,
|
|||
_current(buffer),
|
||||
_source(source),
|
||||
_need_verify(verify_stream),
|
||||
_from_boot_loader_modules_image(from_boot_loader_modules_image) {}
|
||||
_from_boot_loader_modules_image(from_boot_loader_modules_image) {
|
||||
assert(buffer != NULL, "caller should throw NPE");
|
||||
}
|
||||
|
||||
const u1* ClassFileStream::clone_buffer() const {
|
||||
u1* const new_buffer_start = NEW_RESOURCE_ARRAY(u1, length());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue