There was an RFE for this way back in late 2002:
4745629 (thread) Thread.setName does needless string allocations
(don’t use char[])
The initial eval in 2002 stated:
“I can’t imagine that this serIoUsly impacts the performance of any
real program. Furthermore,changing the fields in Thread is
problematic due to the close relationship of this class with the VM.
That said,it might be worth addressing this in the context of some
Thread code-cleanup.”
Then in 2005 it was closed as “will not fix”:
“There are dependencies on the name representation being a char array in the JVM and this RFE must be respectfully rejected.”