Uh oh!
There was an error while loading. Please reload this page.
This repository was archived by the owner on Jul 6, 2020. It is now read-only.
This repository was archived by the owner on Jul 6, 2020. It is now read-only.
There was an error while loading. Please reload this page.
Validate.notIllegalArgument(buffer.isDirect(), new IllegalArgumentException(String.format("buffer.isDirect(): %b (expected: direct buffer)", buffer.isDirect())));Second argument is executed independent of the truth value of the first one. Thus even
buffer.isDirectis true, IllegalArgumentException constructor andString.formatis executed. This yields unnecessary computation on CPU. An example jvisualvm CPU sampling is shown below.