8241006: Cleanup TemplateInterpreter initialization

Reviewed-by: coleenp
This commit is contained in:
Claes Redestad 2020-03-13 15:59:27 +01:00
parent afbe2286e2
commit 37629673e7
6 changed files with 15 additions and 37 deletions

View file

@ -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");