- 博客(4)
- 收藏
- 关注
原创 JVM相关整理
GC的基础知识 1.什么是垃圾 C语言申请内存:malloc free C++: new delete c/C++ 手动回收内存 Java: new ? 自动内存回收,编程上简单,系统不容易出错,手动释放内存,容易出两种类型的问题: 忘记回收 多次回收 没有任何引用指向的一个对象或者多个对象(循环引用) 2.如何定位垃圾 引用计数(ReferenceCount) 根可达算法(RootSe...
2020-04-05 15:59:15 251
原创 PostgresSQL jsonb类型字段查询使用整理
jsonb查询 select * from sec_role where attributes::jsonb ->>‘job_id’ is not null; select count(*) from ci where type = ‘40bca208-5184-11ea-887d-cb65bdaac481’ and attributes ->> ‘clock_date...
2020-04-05 15:24:13 1061
原创 synchronized&&volatile
用户态与内核态 JDK早期,synchronized 叫做重量级锁, 因为申请锁资源必须通过kernel, 系统调用 ;hello.asm ;write(int fd, const void *buffer, size_t nbytes) section data msg db "Hello", 0xA len equ $ - msg section .text global ...
2020-04-05 10:57:56 289
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人