In current 8u-aarch64 code, TemplateTable::bytecode() is public:
public:
static Bytecodes::Code bytecode() { return _desc->bytecode(); }
private:
static BarrierSet* _bs; // Cache the barrier set.
This is 8u-aarch64-specific thing, though, and 8u upstream still has it private. It seem to be added to support simulator hack in Template::generate:
https://hg.openjdk.java.net/aarch64-port/jdk8u-shenandoah/hotspot/rev/38b753943a54#l14.1
It would go away with Simulator removal. But even before that, Template and TemplateTable are friends, so this hack is not needed. This change should be reverted.