mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8241006: Cleanup TemplateInterpreter initialization
Reviewed-by: coleenp
This commit is contained in:
parent
afbe2286e2
commit
37629673e7
6 changed files with 15 additions and 37 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1997, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2020, 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
|
||||
|
@ -40,8 +40,8 @@
|
|||
# define __ _masm->
|
||||
|
||||
void TemplateInterpreter::initialize() {
|
||||
if (_code != NULL) return;
|
||||
// assertions
|
||||
assert(_code == NULL, "must only initialize once");
|
||||
assert((int)Bytecodes::number_of_codes <= (int)DispatchTable::length,
|
||||
"dispatch table too small");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue