Mercurial > hg > truffle
diff src/share/vm/runtime/globals_ext.hpp @ 5947:80fe40862b02
7144328: Improper commandlines for -XX:+-UnlockCommercialFeatures require proper warning/error messages
Summary: Provide custom error messages for locked commercial feature options which are not first unlocked.
Reviewed-by: dcubed, jcoomes, kamg
Contributed-by: james.melvin@oracle.com
author | jmelvin |
---|---|
date | Tue, 20 Mar 2012 16:46:39 -0400 |
parents | 6c995c08526c |
children |
line wrap: on
line diff
--- a/src/share/vm/runtime/globals_ext.hpp Mon Mar 19 10:09:24 2012 +0100 +++ b/src/share/vm/runtime/globals_ext.hpp Tue Mar 20 16:46:39 2012 -0400 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011 Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2011, 2012, 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 @@ -61,4 +61,9 @@ return false; } +inline void Flag::get_locked_message_ext(char* buf, int buflen) const { + assert(buf != NULL, "Buffer cannot be NULL"); + buf[0] = '\0'; +} + #endif // SHARE_VM_RUNTIME_GLOBALS_EXT_HPP