RAM, like most other hardware, is continually upgraded, with faster modules released to the market every few years or so. While you might be tempted to buy two new sticks of the latest DDR4 RAM for ...
To reallocate RAM to "Minecraft," you'll have to edit the game's settings through whatever launcher app you use.