rmuir commented on PR #12703: URL: https://github.com/apache/lucene/pull/12703#issuecomment-1773612369
> Well... as simple wrapping of float[] into MemorySegment is not going to work out, the Vector API does not like it due to alignment constraints (which seems overly pedantic since it can operate fine when accessing a float[] directly! ) But all `float[]` on the heap are just like any other heap object and aligned to 8 bytes or something? ``` $ java -XX:+PrintFlagsFinal -version | grep -i align bool AlignVector = false {C2 product} {default} intx InteriorEntryAlignment = 16 {C2 pd product} {default} intx NumberOfLoopInstrToAlign = 4 {C2 product} {default} int ObjectAlignmentInBytes = 8 {product lp64_product} {default} intx OptoLoopAlignment = 16 {pd product} {default} bool UseUnalignedLoadStores = true {ARCH product} {default} ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org