My understanding is specifying a swapPath makes data region allocated in a memory mapped file. Otherwise the data region is stored in off-heap RAM. swapPath is not about swap files used by operating systems to extend RAM.
According to my understanding the behaviour you described is correct.